package com.example.restaurant.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * <p>
 * 订单详情表
 * </p>
 *
 * @author x
 * @since 2022-09-29
 */
@TableName("order_info")
@ApiModel(value = "OrderInfo对象", description = "订单详情表")
public class OrderInfo implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("关联订单号")
    private String orderNumber;

    @ApiModelProperty("菜品数量")
    private Integer dishNumber;

    @ApiModelProperty("菜品价格")
    private Double dishPrice;

    @ApiModelProperty("菜品图片")
    private String dishImg;

    @ApiModelProperty("菜品名字")
    private String dishName;

    @ApiModelProperty("菜品id")
    private Integer dishId;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getOrderNumber() {
        return orderNumber;
    }

    public void setOrderNumber(String orderNumber) {
        this.orderNumber = orderNumber;
    }

    public Integer getDishNumber() {
        return dishNumber;
    }

    public void setDishNumber(Integer dishNumber) {
        this.dishNumber = dishNumber;
    }

    public Double getDishPrice() {
        return dishPrice;
    }

    public void setDishPrice(Double dishPrice) {
        this.dishPrice = dishPrice;
    }

    public String getDishImg() {
        return dishImg;
    }

    public void setDishImg(String dishImg) {
        this.dishImg = dishImg;
    }

    public String getDishName() {
        return dishName;
    }

    public void setDishName(String dishName) {
        this.dishName = dishName;
    }

    public Integer getDishId() {
        return dishId;
    }

    public void setDishId(Integer dishId) {
        this.dishId = dishId;
    }

    @Override
    public String toString() {
        return "OrderInfo{" +
        "id = " + id +
        ", orderNumber = " + orderNumber +
        ", dishNumber = " + dishNumber +
        ", dishPrice = " + dishPrice +
        ", dishImg = " + dishImg +
        ", dishName = " + dishName +
        ", dishId = " + dishId +
        "}";
    }
}
